﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Dashboard.aspx.cs" Inherits="Pages_Dashboard_Dashboard" %>

<%@ Register Src="~/Controls/Reports/MaterAccountOverview.ascx" TagPrefix="uc" TagName="MasterAccountOverview" %>
<%@ Register Src="~/Controls/General/SideMenus/ProfileSideMenu.ascx" TagPrefix="uc"
    TagName="ProfileMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">

    <script type="text/javascript">
        $(document).ready(function () {
            $('.Collapse, .Expand').click(function () { $(this).parents('.summary').next().slideToggle(); toggleExpand($(this), $(this).parents('.summary')) });
        }
		);
        function toggleExpand(icon, container) {
            if (icon.attr('src') == '/Images/Gui/Buttons/2downarrow.png') {
                icon.attr({ src: '/Images/Gui/Buttons/3uparrow.png', alt: 'Collapse' });
                container.addClass('Open');
            }
            else {
                icon.attr({ src: '/Images/Gui/Buttons/2downarrow.png', alt: 'Expand' });
                container.removeClass('Open');
            }

        }
    </script>

</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="LeftMainColContent">
    <uc:ProfileMenu ID="ucProfileMenu" runat="server"></uc:ProfileMenu>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        <asp:Literal runat="server" ID="ltrProfileName"></asp:Literal>
    </h1>
    <div class="AccountsDisplay">
        <h2>
            Master accounts</h2>
        <hr />
        <p>
            <%=Resources.Texts.MasterAccountOverview_GraphExplenation %>
        </p>
        <div class="overView">
            <%--<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<th>
						#
					</th>
					<th>
						Name
					</th>
					<th>
						Facebok fans
					</th>
					<th>
						Twitter followers
					</th>
					<th>
						Posts
					</th>
					<th>
						Comments
					</th>
					<th>
						Avg. Comments
					</th>
					<th>
						Requires action
					</th>
				</tr>--%>
            <asp:Repeater runat="server" ID="repAccounts">
                <ItemTemplate>
                    <uc:MasterAccountOverview ID="MasterAccountOverview1" runat="server" MasterAccount='<%#Container.DataItem %>' />
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</asp:Content>